<?
include_once("../conn.php");

if(isset($submit) && $submit == 'Add')
{
	$q1 = "insert into job_plan set
		PlanName = \"$PlanName\",
		postings = \"$postings\",
		reviews = \"$reviews\",
		price = \"$price\" ";
	mysql_query($q1) or die(mysql_error());

	header("location:eprices.php");
	exit();
}

include_once "accesscontrol.php";
include_once "index.php";

?>

<br>
<form method=post>
<table align=center width=300>
<caption class=HeaderClass> Add a new plan </caption>
<tr>
	<td align=right><b> Plan name:</b></td>
	<td>&nbsp;&nbsp;<input type=text name=PlanName></td>
</tr>

<tr>
	<td align=right><b>Postings: </b></td>
	<td>&nbsp;&nbsp;<input type=text name=postings size=5></td>
</tr>

<tr>
	<td align=right><b> Reviews: </b></td>
	<td>&nbsp;&nbsp;<input type=text name=reviews size=5></td>
</tr>

<tr>
	<td align=right><b> Price: </b></td>
	<td><b>$</b><input type=text name=price size=5></td>
</tr>

<tr>
	<td></td>
	<td>&nbsp;&nbsp;<input type=submit name=submit value=Add></td>
</tr>
</table>
</form>

<? include_once('../footer.php'); ?>